export const isObject = (val) => typeof val === 'object' && val !== null;
export const isSymbol = (val) => typeof val === 'symbol';

export const isArray = (val) => Array.isArray(val);
export const isInteger = (val) => '' + parseInt(val, 10) === val;

const hasOwnProperty = Object.prototype.hasOwnProperty;
export const hasOwn = (val, key) => hasOwnProperty.call(val, key);

export const hasChanged = (value, oldValue) => value !== oldValue;

export const isString = (value) => typeof value === 'string';

export const isFunction = (value) => typeof value === 'function';

export * from './shapeFlags';
